<template>
  <div class="container" :style="{'justify-content':showBefore?'space-between':'flex-end'}">
    <div v-if="showBefore" class="left">
      <i class="el-icon-info" />
      <slot name="before" />
    </div>
    <div>
      <slot name="after" />
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  props: {
    showBefore: {
      type: Boolean,
      default: false
    }

  },
  data() {
    return {

    }
  },
  methods: {

  }
}
</script>

<style scoped lang="scss">
.container{
  display: flex;
  align-items: center;
  .left{
    display: inline-block;
    padding: 0px 10px;
    border-radius: 3px;
    border: 1px solid rgba(145, 213, 255, 1);
    background: rgba(230, 247, 255, 1);
  }
}
.left{
  padding:5px !important;
}
.container{
  margin-bottom:20px;
}
</style>
